package cn.bdqn.hospital.vo;
/**
 * 枚举类 返回系统代码
 */
public enum ResultCode {
    SUCCESS(200,"操作成功"),
    FAILED(500,"操作失败"),
    FAILED_URL(404,"请求路径不存在！"),
    FAILED_URL_METHOD(405,"请求方式不存在！");

    private long code;    // 状态
    private String message;   // 返回的消息

    private ResultCode(long code,String message){
        this.code =code;
        this.message = message;
    }
    /**
     * 获取状态
     */
    public long getCode() {
        return code;
    }
    /**
     * 获取返回的消息
     */
    public String getMessage() {
        return message;
    }
}
